#ifndef LIBRARIAN_HPP
#define LIBRARIAN_HPP

Librarian::Librarian(String Name, PhoneNumber Number, Email Eml, int Age, int LibraryCard, Address Addr)
{
	setName(Name);
	setNumber(Number);
	setEmail(Eml);
	setAge(Age);
	setLibraryCard(LibraryCard);
	setAddress(Addr);
}

double Librarian::payFine(double amount, Patron patron)
{
	Patron updatedPatron = patron;
	updatedPatron.setFine(patron.getFine() - amount);
	if(updatePerson(patron, updatedPatron))
		return updatedPatron.getFine();
	else
		return patron.getFine();
}

#endif
